/*
 * PrintTable.h
 *
 *  Created on: 15/12/2009
 *      Author: luis
 */

#ifndef PRINTTABLE_H_
#define PRINTTABLE_H_

#include <gtkmm.h>
#include "../Modelo/Circuito.h"

class PrintTable : public Gtk::PrintOperation{
	public:
		static Glib::RefPtr<PrintTable> create(Circuito* circuito);
		~PrintTable();
	protected:


		virtual void on_begin_print(const Glib::RefPtr<Gtk::PrintContext>& context);
		virtual void on_draw_page(const Glib::RefPtr<Gtk::PrintContext>& context, int page_nr);

		PrintTable(Circuito* circuito);

	private:

		Circuito* circuito;

	};
#endif /* PRINTTABLE_H_ */
